package com.xiangxiao.rpan.gateway.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.web.servlet.error.ErrorController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @auther xiangxiao
 * @email 573768011@qq.com
 * @data 2023/5/5 17:05
 */
@Slf4j
@Controller
@RequestMapping("${error.path:/error}")
public class DealErrorController implements ErrorController {
  @Value("${error.path:/error}")
  String path;

  @Override
  public String getErrorPath() {
    return null;
  }
}
